package com.gxuwz.prrs.service.impl;

import com.google.gson.reflect.TypeToken;
import com.gxuwz.prrs.bean.CommonResponse;
import com.gxuwz.prrs.bean.Page;
import com.gxuwz.prrs.bean.UserInfo;
import com.gxuwz.prrs.service.BaseService;
import com.gxuwz.prrs.utils.RequestUtils;

import java.lang.reflect.Type;

/**
 * @author 张钧
 * @Description
 * @create 2023-05-25 下午 10:45
 */
public class UpdateServiceImpl implements BaseService<String, Page<String>> {

	public String getVersion() {
		String url = "/version";
		Type type = new TypeToken<CommonResponse<String>>() {
		}.getType();
		CommonResponse<String> s = RequestUtils.getRequest(url, type);
		if (s != null) {
			return s.getData();
		} else {
			return null;
		}
	}

	@Override
	public Page<String> page(Page<String> page) {
		return null;
	}
}
